<template>
	<view class="block">
		<view class="" style="padding-bottom: 100rpx;">
			<view class="tab_nav">
				<view class="navTitle" v-for="(item,index) in navList" :key="index">
					<view :class="{'active':isActive === index}" @click="checked(index)">
						{{item.title}}
					</view>
				</view>
			</view>
			<view class="">
				<view class="margin_top2 ffffff mainpadding" v-for="item in 3" @click="tzckxq">
					<view class="flexleft">
						<image class="margin_right1 xiaotux" src="../static/image/system/vs.png" mode=""></image>
						<view class="">
							<view class="ershiba xiaohei">孤独比酒暖°</view>
							<view class="smalltext xiaohui margin_top1">6小时前</view>
						</view>
					</view>
					<view class="margin_top sanshier xiaohei">远处是风景，近处的才是人生.</view>
					<view class="flexleft flex_wrap">
						<view class="sanshis flexcenter margin_top" v-for="item in 3">
							<image class="dtbabb" src="../static/image/system/zybjt.png" mode=""></image>
						</view>
					</view>
					<view class="flexbetween margin_top">
						<view class="ershiw flexcenter">
							<view class="flexleft">
								<view class="dticon">
									<image src="../static/image/system/s.png" mode=""></image>
								</view>
								<view class="smalltext xiaohei">28</view>
							</view>
						</view>
						<view class="ershiw flexcenter">
							<view class="flexleft">
								<view class="dticon">
									<image src="../static/image/system/fx.png" mode=""></image>
								</view>
								<view class="smalltext xiaohei">28</view>
							</view>
						</view>
						<view class="ershiw flexcenter">
							<view class="flexleft">
								<view class="dticon">
									<image src="../static/image/system/xx.png" mode=""></image>
								</view>
								<view class="smalltext xiaohei">28</view>
							</view>
						</view>
						<view class="ershiw flexcenter">
							<view class="flexleft">
								<view class="dticon">
									<image src="../static/image/system/dz.png" mode=""></image>
								</view>
								<view class="smalltext xiaohei">28</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>	
		<tabbardi :current="1"></tabbardi>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isActive: 0,
				navList: [{
					index: 0,
					title: '关注'
				}, {
					index: 1,
					title: "推荐"
				}]
			}
		},
		methods: {
			// 跳转详情
			tzckxq(){
				uni.navigateTo({
					url:'/pages_fabu/dongtaixq'
				})
			},
			checked(index) {
				this.isActive = index
			},
		}
	}
</script>

<style lang="scss" scoped>
	.xiaotux {
		width: 64rpx;
		height: 64rpx;
		border-radius: 50%;
	}
	.dtbabb {
		width: 224rpx;
		height: 224rpx;
	}
	.dticon {
		width: 32rpx;
		height: 32rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}
	.tab_nav {
		background-color: #fff;
		display: flex;
		justify-content: center;
		align-items: center;
		padding-bottom: 11rpx;
	}
	
	.tab_nav .navTitle {
		height: 90rpx;
		line-height: 90rpx;
		width: 100%;
		text-align: center;
		font-size: 30rpx;
		font-weight: bold;
		color: #999999;
	}
	
	.active {
		font-size: 30rpx;
		color: #333333;
		font-weight: bold;
		position: relative;
	}
	
	.active::after {
		content: "";
		position: absolute;
		width: 48rpx;
		height: 6rpx;
		background: linear-gradient(90deg, #2361FF 0%, #FFFFFF 100%);
		background-size: 100% 100%;
		left: 0rpx;
		right: 0rpx;
		bottom: 0rpx;
		margin: auto;
	}
.block{
	background: #F9F9F9;
	min-height:calc(100vh - 100rpx);
	height: auto;
}
</style>
